﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StudentManagerDAL;
using StudentManagerModels;
using StudentManagerModels.Ext;

namespace StudentManagerBLL
{
    public class AttendanceManager
    {
        private AttendanceService attendanceService = new AttendanceService();

        public string AddRecord(string cardNo)
        {
            return attendanceService.AddRecord(cardNo);
        }

        public string GetAllStudents()
        {
            return attendanceService.GetAllStudents();
        }

        public string GetAttendStudents(DateTime dt, bool isToday)
        {
            return attendanceService.GetAttendStudents(dt, isToday);
        }
        public List<StudentExt> GetStuByDate(DateTime beginDate, DateTime endDate, string name)
        {
            return attendanceService.GetStuByDate(beginDate, endDate, name);
        }
    }
}
